home *** CD-ROM | disk | FTP | other *** search
/ Java Primer Plus / Java Primer Plus (Waite Group Proess)(1996).iso / chapter17 / simple_info.java < prev    next >
Text File  |  1995-12-31  |  272b  |  13 lines

  1. /* Class to be binary treed */
  2. class simple_info {
  3.     int keyval;
  4.     String valname;
  5.     public simple_info(int k,String v) { 
  6.                 keyval = k; 
  7.                 valname = v; }
  8.     public int key() { return keyval; }
  9.     public void printmyval() { 
  10.         System.out.println(valname);
  11.         }
  12.     }
  13.